package cn.wolfcode.luowowo.flight.service.impl;

import cn.wolfcode.luowowo.flight.domain.BuyTicket;
import cn.wolfcode.luowowo.flight.domain.DoorTicket;
import cn.wolfcode.luowowo.flight.mapper.BuyTicketMapper;
import cn.wolfcode.luowowo.flight.service.IBuyTicketService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

@Service
public class BuyTicketServiceImpl implements IBuyTicketService {

    @Autowired
    private BuyTicketMapper buyTicketMapper;

    @Override
    public void saveOrUpdate(BuyTicket ticket) {
        buyTicketMapper.insert(ticket);
    }

    @Override
    public List<BuyTicket> queryByUserId(Long uid) {
        return buyTicketMapper.selectByUserId(uid);
    }
}
